<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'boollist.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="css/common.css">

  </head>
  
  <body>
    <div>
    	<s:form action="jsp_user_addshopcar.action" target="centerframe"  method="post" theme="simple" enctype="multipart/form-data">
    		<s:hidden name="bookId" value="%{book.bookId}"></s:hidden>
    		<table id="bookdetail">
    			<tr>
    				<td id="bookdetail_title">图书详细资料</td>
    			</tr>
    			<tr>
    				<td><hr/></td>
    			</tr>
    			<tr>
    				<td align="center">
    					<table>
			    			<tr>
			    				<td width="100px" align="right">图书名称：</td>
			    				<td ><s:property value="%{book.title}" /></td>
			    			</tr>
			    			<tr>
			    				<td align="right">作者：</td>
			    				<td><s:property value="%{book.author}" /></td>
			    			</tr>
			    			<tr>
			    				<td  align="right">分类：</td>
			    				<td><s:property value="%{book.typeName}" /></td>
			    			</tr>
			    			<tr>
			    				<td  align="right">出版社：</td>
			    				<td><s:property value="%{book.publisher}" /></td>
			    			</tr>
			    			<tr >
			    				<td align="right">出版时间：</td>
			    				<td><s:property value="%{book.publishTime}" /></td>
			    			</tr>
			    			<tr >
			    				<td align="right">isbn：</td>
			    				<td><s:property value="%{book.isbn}" /></td>
			    			</tr>
			    			<tr>
			    				<td  align="right">单价：</td>
			    				<td><s:property value="%{book.price}" /></td>
			    			</tr>
			    			<tr >
			    				<td align="right">总数量：</td>
			    				<td><s:property value="%{book.totalAmount}" /></td>
			    			</tr>
			    			<tr>
			    				<td  align="right">剩余数量：</td>
			    				<td><s:property value="%{book.remainder}" /></td>
			    			</tr>    			
			    			<tr >
			    				<td align="right">封面：</td>
			    				<td><img width="80px" height="120px" alt="<s:property value='%{book.title}'/>" src="<s:property value='%{book.picturePath}'/>"/></td>
			    			</tr>
			    			<tr >
			    				<td align="right">内容简介：</td>
			    				<td><s:property value="%{book.content}" /></td>
			    			</tr>
			    			<tr >
			    				<td colspan="2" align="right">
			    					<s:submit value="加入购物车"></s:submit>
			    					<a href="jsp_user_bookselect">返回</a>
			    				</td>
			    			</tr>
    					</table>
    				</td>
    			</tr>
    		</table>
    	</s:form>
    </div>
  </body>
</html>
